-- GENERATED SPELL FOR [Dalaran Protector] --


function spell0_1912(pUnit, Event) --@Summon Dalaran Serpent,Self--
pUnit:FullCastSpellOnTarget(3615,pUnit)
pUnit:RegisterEvent('Sorts_1912', 30343, 1)
end

function Sorts_1912(pUnit, Event)
local choix_sorts_1912 = math.random(0, 0)
if choix_sorts_1912 == 0 then
pUnit:RegisterEvent('spell0_1912', 1, 1)
end
end

function mob1912_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1912', math.random(1500, 3000), 1)
end

function mob1912_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1912_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1912_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1912, 1, 'mob1912_Action')
RegisterUnitEvent(1912, 2, 'mob1912_Leave')
RegisterUnitEvent(1912, 3, 'mob1912_Kill')
RegisterUnitEvent(1912, 4, 'mob1912_Die')
